#ifndef YUZHILINEEDIT_H
#define YUZHILINEEDIT_H

#include <QLineEdit>
#include <QString>
#include <QGraphicsScene>
#include <QGraphicsItem>
#include <QFocusEvent>


#include <experimentresultui.h>
class ResultCurveresult;
class YuzhiLineEdit : public QLineEdit
{
    Q_OBJECT
signals:
    void doubleClicked (bool); // 定义一个自定义信号
    void returnYuzhi(QString key,double text);

public:
    explicit YuzhiLineEdit (QWidget *parent = nullptr); // 构造函数

protected:
    void mouseDoubleClickEvent (QMouseEvent *event) override; // 重写双击事件
    void focusOutEvent(QFocusEvent *event) override; // 重写失焦事件

private:

    ExperimentResultUi *result;

//    void SetYuzhiLineEdit(ExperimentResultUi *result, double mapPos);
    double valueNow;
public:
     void getResultrchart(ExperimentResultUi *result); // 获取结果页面图表
     QString yuzhiID;

};


#endif // YUZHILINEEDIT_H
